﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DomainInfoLib
{
    public class RequsetSever
    {
        static APIPool _APIPool = new APIPool();

        static IRequester _Requester ;

        static RequsetSever()
        {
            _Requester = new AverageRequester();
            //_Requester = new OrdinalRequester();
           // _Requester = new OrdinalRequesterWhile();
        }

        public static RegisterInfo GetResponseFromAPI(string DomainName)
        {
            return _Requester.GetResponseFromAPI(DomainName, _APIPool);
        }


    }
}
